package com.iflytek.universitymanagement.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("weak_course")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="WeakCourse对象", description="")
public class WeakCourse extends Account implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "weak_course_id", type = IdType.AUTO)
    private Integer weakCourseId;
    private Integer scoreId;
    @TableField(exist = false)
    private Integer studentId;  // 学生ID

    @TableField(exist = false)
    private Integer courseId;   // 课程ID

    @TableField(exist = false)
    private String studentName; // 学生姓名

    @TableField(exist = false)
    private String courseName;  // 课程名称

    @TableField(exist = false)
    private BigDecimal score;   // 成绩

}